const mysql = require('mysql')

function createConnection() {
    const connection = mysql.createConnection({
        host: "127.0.0.1", //主机地址
        user: "root", //用户名
        password: "123456", //密码
        port: '3306', //端口
        useConnectionPooling: true,
        database: "delicacies" //数据库名称
    });
    return connection;
}

module.exports.createConnection = createConnection;